<template>
  <div>
    <van-button type="primary" @click="handClick">主要按钮</van-button>
  </div>
</template>

<script>
export default {
    data(){
        return {    
        }
    },
    methods:{
        handClick() {
            console.log(1);
            this.$emit('changeTitle','666我的宝贝')
        }
    }
}
</script>

<style>

</style>